package net.yura.domination.engine;

import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Locale;
import java.util.ResourceBundle;
import java.net.URL;

@SuppressWarnings("rawtypes")
public interface RiskIO {

        /**
         * for access to local files like game.ini or commands.txt, credits.htm
         */
	InputStream openStream(String name) throws IOException;

	InputStream openMapStream(String name) throws IOException;
	ResourceBundle getResourceBundle(Class a,String n,Locale l);
	void openURL(URL url) throws Exception;
	void openDocs(String doc) throws Exception;

        // only here coz of android, as are not used for lobby
        void saveGameFile(String name,Object obj) throws Exception;
        InputStream loadGameFile(String file) throws Exception;
        
        OutputStream saveMapFile(String fileName) throws Exception;
        
        void getMap(String filename,Risk risk,Exception ex);
}
